# eric7.Plugins.VcsPlugins.vcsSubversion.SvnDialog

Module implementing a dialog starting a process and showing its output.

### Global Attributes

None

### Classes

SvnDialog | Class implementing a dialog starting a process and showing its output.

### Functions

None

## SvnDialog

Class implementing a dialog starting a process and showing its output.

It starts a QProcess and displays a dialog that shows the output of the process. The dialog is modal, which causes a synchronized execution of the process.

### Derived from

QDialog, Ui_SvnDialog

### Class Attributes

None

### Class Methods

None

### Methods

SvnDialog | Constructor
__finish | Private slot called when the process finished or the user pressed the button.
__procFinished | Private slot connected to the finished signal.
__readStderr | Private slot to handle the readyReadStderr signal.
__readStdout | Private slot to handle the readyReadStdout signal.
hasAddOrDelete | Public method to check, if the last action contained an add or delete.
keyPressEvent | Protected slot to handle a key press event.
normalExit | Public method to check for a normal process termination.
on_buttonBox_clicked | Private slot called by a button of the button box clicked.
on_input_returnPressed | Private slot to handle the press of the return key in the input field.
on_passwordCheckBox_toggled | Private slot to handle the password checkbox toggled.
on_sendButton_clicked | Private slot to send the input to the subversion process.
startProcess | Public slot used to start the process.

### Static Methods

None

#### SvnDialog (Constructor)

SvnDialog(text, parent=None)

Constructor

text (str)
  text to be shown by the label
parent (QWidget)
  parent widget

#### SvnDialog.__finish

__finish()

Private slot called when the process finished or the user pressed the button.

#### SvnDialog.__procFinished

__procFinished(exitCode, exitStatus)

Private slot connected to the finished signal.

exitCode (int)
  exit code of the process
exitStatus (QProcess.ExitStatus)
  exit status of the process

#### SvnDialog.__readStderr

__readStderr()

Private slot to handle the readyReadStderr signal.

It reads the error output of the process and inserts it into the error pane.

#### SvnDialog.__readStdout

__readStdout()

Private slot to handle the readyReadStdout signal.

It reads the output of the process, formats it and inserts it into the contents pane.

#### SvnDialog.hasAddOrDelete

hasAddOrDelete()

Public method to check, if the last action contained an add or delete.

Return:
  flag indicating the presence of an add or delete

Return Type:
  bool

#### SvnDialog.keyPressEvent

keyPressEvent(evt)

Protected slot to handle a key press event.

evt (QKeyEvent)
  the key press event

#### SvnDialog.normalExit

normalExit()

Public method to check for a normal process termination.

Return:
  flag indicating normal process termination

Return Type:
  bool

#### SvnDialog.on_buttonBox_clicked

on_buttonBox_clicked(button)

Private slot called by a button of the button box clicked.

button (QAbstractButton)
  button that was clicked

#### SvnDialog.on_input_returnPressed

on_input_returnPressed()

Private slot to handle the press of the return key in the input field.

#### SvnDialog.on_passwordCheckBox_toggled

on_passwordCheckBox_toggled(isOn)

Private slot to handle the password checkbox toggled.

isOn (bool)
  flag indicating the status of the check box

#### SvnDialog.on_sendButton_clicked

on_sendButton_clicked()

Private slot to send the input to the subversion process.

#### SvnDialog.startProcess

startProcess(args, workingDir=None, setLanguage=False)

Public slot used to start the process.

args (list of str)
  list of arguments for the process
workingDir (str)
  working directory for the process
setLanguage (bool)
  flag indicating to set the language to "C"

Return:
  flag indicating a successful start of the process

Return Type:
  bool

Up